package com.ai.bitcoin.jpa.service.impl;

import com.ai.bitcoin.jpa.dao.BccHandleRuleDao;
import com.ai.bitcoin.jpa.entity.BccScoreRule;
import com.ai.bitcoin.jpa.service.BccScoreRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Jason
 * @date 2018/3/27
 **/
@Slf4j
@Service
public class BccScoreRuleServiceImpl implements BccScoreRuleService {
    @Autowired
    BccHandleRuleDao dao;

    @Override
    public List<BccScoreRule> findByBccId(String bccId) {
        return dao.findByBccId(bccId);
    }

    @Override
    public List<BccScoreRule> findByBccIdAndScoreClass(String bccId, String ruleClass) {
        return dao.findByBccIdAndScoreClass(bccId, ruleClass);
    }
}
